/*
 * @Author: zxh
 * @Date: 2024-07-26 14:50:14
 * @LastEditors: zxh
 * @LastEditTime: 2024-07-26 17:20:30
 * @Description: 请填写简介i
 */
import http from '@/utils/http'
// 获取banner
export function getBannerAPI(params = { distributionSite: '1' }) {
  // 默认为1 商品为2
  const { distributionSite = '1' } = params
  return <any>http({
    url: '/home/banner',
    params: {
      distributionSite
    }
  })
}

/**
 * @description: 获取新鲜好物
 * @param {*}
 * @return {*}
 */
export const findNewAPI = () => {
  return <any>http({
    url: '/home/new'
  })
}

/**
 * @description: 获取人气推荐
 * @param {*}
 * @return {*}
 */
export const getHotAPI = () => {
  return <any>http('/home/hot')
}

/**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const getGoodsAPI = () => {
  return <any>http({
    url: '/home/goods'
  })
}
